<?php
class index extends myphp{
	function main(){
		$title=null;
		$this->table('search')->select('title,id');
		foreach($this->res as $v){
			$t=$v['title'];
			$id=$v['id'];
			$title.='<p>'."<a href='index.php?m=index&c=content&a=article&id=$id' target='_blank'>".$v['title'].'</a>'.'</p>'.'<br>';
		}
		echo $title;
	}
}



